Integrand size = 25, antiderivative size = 178 \[ \int \frac {(a+b \tan (e+f x))^3}{\sqrt {d \sec (e+f x)}} \, dx=\frac {2 a \left (a^2-6 b^2\right ) E\left (\left .\frac {1}{2} \arctan (\tan (e+f x))\right |2\right ) \sqrt [4]{\sec ^2(e+f x)}}{f \sqrt {d \sec (e+f x)}}-\frac {2 a \left (a^2-6 b^2\right ) \tan (e+f x)}{f \sqrt {d \sec (e+f x)}}-\frac {2 (b-a \tan (e+f x)) (a+b \tan (e+f x))^2}{f \sqrt {d \sec (e+f x)}}-\frac {2 b \sec ^2(e+f x) \left (2 \left (3 a^2-2 b^2\right )+3 a b \tan (e+f x)\right )}{3 f \sqrt {d \sec (e+f x)}} \]
[Out]
Time = 0.17 (sec) , antiderivative size = 178, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3593, 753, 794, 233, 202} \[ \int \frac {(a+b \tan (e+f x))^3}{\sqrt {d \sec (e+f x)}} \, dx=\frac {2 a \left (a^2-6 b^2\right ) \sqrt [4]{\sec ^2(e+f x)} E\left (\left .\frac {1}{2} \arctan (\tan (e+f x))\right |2\right )}{f \sqrt {d \sec (e+f x)}}-\frac {2 b \sec ^2(e+f x) \left (2 \left (3 a^2-2 b^2\right )+3 a b \tan (e+f x)\right )}{3 f \sqrt {d \sec (e+f x)}}-\frac {2 a \left (a^2-6 b^2\right ) \tan (e+f x)}{f \sqrt {d \sec (e+f x)}}-\frac {2 (b-a \tan (e+f x)) (a+b \tan (e+f x))^2}{f \sqrt {d \sec (e+f x)}} \]
[In]
[Out]
Rule 202
Rule 233
Rule 753
Rule 794
Rule 3593
Rubi steps \begin{align*} \text {integral}& = \frac {\sqrt [4]{\sec ^2(e+f x)} \text {Subst}\left (\int \frac {(a+x)^3}{\left (1+\frac {x^2}{b^2}\right )^{5/4}} \, dx,x,b \tan (e+f x)\right )}{b f \sqrt {d \sec (e+f x)}} \\ & = -\frac {2 (b-a \tan (e+f x)) (a+b \tan (e+f x))^2}{f \sqrt {d \sec (e+f x)}}+\frac {\left (2 b \sqrt [4]{\sec ^2(e+f x)}\right ) \text {Subst}\left (\int \frac {(a+x) \left (\frac {1}{2} \left (4-\frac {a^2}{b^2}\right )-\frac {5 a x}{2 b^2}\right )}{\sqrt [4]{1+\frac {x^2}{b^2}}} \, dx,x,b \tan (e+f x)\right )}{f \sqrt {d \sec (e+f x)}} \\ & = -\frac {2 (b-a \tan (e+f x)) (a+b \tan (e+f x))^2}{f \sqrt {d \sec (e+f x)}}-\frac {2 b \sec ^2(e+f x) \left (2 \left (3 a^2-2 b^2\right )+3 a b \tan (e+f x)\right )}{3 f \sqrt {d \sec (e+f x)}}+\frac {\left (a \left (6-\frac {a^2}{b^2}\right ) b \sqrt [4]{\sec ^2(e+f x)}\right ) \text {Subst}\left (\int \frac {1}{\sqrt [4]{1+\frac {x^2}{b^2}}} \, dx,x,b \tan (e+f x)\right )}{f \sqrt {d \sec (e+f x)}} \\ & = -\frac {2 a \left (a^2-6 b^2\right ) \tan (e+f x)}{f \sqrt {d \sec (e+f x)}}-\frac {2 (b-a \tan (e+f x)) (a+b \tan (e+f x))^2}{f \sqrt {d \sec (e+f x)}}-\frac {2 b \sec ^2(e+f x) \left (2 \left (3 a^2-2 b^2\right )+3 a b \tan (e+f x)\right )}{3 f \sqrt {d \sec (e+f x)}}-\frac {\left (a \left (6-\frac {a^2}{b^2}\right ) b \sqrt [4]{\sec ^2(e+f x)}\right ) \text {Subst}\left (\int \frac {1}{\left (1+\frac {x^2}{b^2}\right )^{5/4}} \, dx,x,b \tan (e+f x)\right )}{f \sqrt {d \sec (e+f x)}} \\ & = \frac {2 a \left (a^2-6 b^2\right ) E\left (\left .\frac {1}{2} \arctan (\tan (e+f x))\right |2\right ) \sqrt [4]{\sec ^2(e+f x)}}{f \sqrt {d \sec (e+f x)}}-\frac {2 a \left (a^2-6 b^2\right ) \tan (e+f x)}{f \sqrt {d \sec (e+f x)}}-\frac {2 (b-a \tan (e+f x)) (a+b \tan (e+f x))^2}{f \sqrt {d \sec (e+f x)}}-\frac {2 b \sec ^2(e+f x) \left (2 \left (3 a^2-2 b^2\right )+3 a b \tan (e+f x)\right )}{3 f \sqrt {d \sec (e+f x)}} \\ \end{align*}
Time = 4.90 (sec) , antiderivative size = 130, normalized size of antiderivative = 0.73 \[ \int \frac {(a+b \tan (e+f x))^3}{\sqrt {d \sec (e+f x)}} \, dx=\frac {d \left (6 a \left (a^2-6 b^2\right ) \cos ^{\frac {3}{2}}(e+f x) E\left (\left .\frac {1}{2} (e+f x)\right |2\right )+b \left (-9 a^2+5 b^2+\left (-9 a^2+3 b^2\right ) \cos (2 (e+f x))+9 a b \sin (2 (e+f x))\right )\right ) (a+b \tan (e+f x))^3}{3 f (d \sec (e+f x))^{3/2} (a \cos (e+f x)+b \sin (e+f x))^3} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 21.30 (sec) , antiderivative size = 1114, normalized size of antiderivative = 6.26
method | result | size |
parts | \(\text {Expression too large to display}\) | \(1114\) |
default | \(\text {Expression too large to display}\) | \(2626\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.10 (sec) , antiderivative size = 169, normalized size of antiderivative = 0.95 \[ \int \frac {(a+b \tan (e+f x))^3}{\sqrt {d \sec (e+f x)}} \, dx=-\frac {3 \, \sqrt {2} {\left (-i \, a^{3} + 6 i \, a b^{2}\right )} \sqrt {d} \cos \left (f x + e\right ) {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (f x + e\right ) + i \, \sin \left (f x + e\right )\right )\right ) + 3 \, \sqrt {2} {\left (i \, a^{3} - 6 i \, a b^{2}\right )} \sqrt {d} \cos \left (f x + e\right ) {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (f x + e\right ) - i \, \sin \left (f x + e\right )\right )\right ) - 2 \, {\left (9 \, a b^{2} \cos \left (f x + e\right ) \sin \left (f x + e\right ) + b^{3} - 3 \, {\left (3 \, a^{2} b - b^{3}\right )} \cos \left (f x + e\right )^{2}\right )} \sqrt {\frac {d}{\cos \left (f x + e\right )}}}{3 \, d f \cos \left (f x + e\right )} \]
[In]
[Out]
\[ \int \frac {(a+b \tan (e+f x))^3}{\sqrt {d \sec (e+f x)}} \, dx=\int \frac {\left (a + b \tan {\left (e + f x \right )}\right )^{3}}{\sqrt {d \sec {\left (e + f x \right )}}}\, dx \]
[In]
[Out]
\[ \int \frac {(a+b \tan (e+f x))^3}{\sqrt {d \sec (e+f x)}} \, dx=\int { \frac {{\left (b \tan \left (f x + e\right ) + a\right )}^{3}}{\sqrt {d \sec \left (f x + e\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {(a+b \tan (e+f x))^3}{\sqrt {d \sec (e+f x)}} \, dx=\int { \frac {{\left (b \tan \left (f x + e\right ) + a\right )}^{3}}{\sqrt {d \sec \left (f x + e\right )}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(a+b \tan (e+f x))^3}{\sqrt {d \sec (e+f x)}} \, dx=\int \frac {{\left (a+b\,\mathrm {tan}\left (e+f\,x\right )\right )}^3}{\sqrt {\frac {d}{\cos \left (e+f\,x\right )}}} \,d x \]
[In]
[Out]